<%@ page import="myexchange.Game" %>



<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'activeCards', 'error')} ">
	<label for="activeCards">
		<g:message code="game.activeCards.label" default="Active Cards" />
		
	</label>
	<g:select name="activeCards" from="${myexchange.Card.list()}" multiple="multiple" optionKey="id" size="5" value="${gameInstance?.activeCards*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'players', 'error')} ">
	<label for="players">
		<g:message code="game.players.label" default="Players" />
		
	</label>
	<g:select name="players" from="${myexchange.Player.list()}" multiple="multiple" optionKey="id" size="5" value="${gameInstance?.players*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'unusedCards', 'error')} ">
	<label for="unusedCards">
		<g:message code="game.unusedCards.label" default="Unused Cards" />
		
	</label>
	<g:select name="unusedCards" from="${myexchange.Card.list()}" multiple="multiple" optionKey="id" size="5" value="${gameInstance?.unusedCards*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: gameInstance, field: 'usedCards', 'error')} ">
	<label for="usedCards">
		<g:message code="game.usedCards.label" default="Used Cards" />
		
	</label>
	<g:select name="usedCards" from="${myexchange.Card.list()}" multiple="multiple" optionKey="id" size="5" value="${gameInstance?.usedCards*.id}" class="many-to-many"/>
</div>

